#ifndef _text_h
#define _text_h

#include <SDL/SDL_ttf.h>
#include "colour.h"

enum EXPAND_MASK {
    XP_WIDTH = 1,
    XP_HEIGHT = 2
};

SDL_Surface* text(TTF_Font*, const char* text, colour_t colour);
SDL_Surface* text(TTF_Font*, const char* text, colour_t fg, colour_t bg);
void drawText(SDL_Surface* dest, TTF_Font*, const char* txt, colour_t colour, unsigned x, unsigned y);
void alignText(SDL_Surface* dest, TTF_Font*, const char* txt, colour_t colour, ALIGNMENT alignment);
void alignedTextBox(SDL_Surface* dest, TTF_Font*, const char* txt, colour_t fg, colour_t bg,
                    SDL_Rect* where, ALIGNMENT alignment, unsigned expand);
TTF_Font* loadFont(const char* fileName, unsigned pt);

#endif
/* vim:set ts=2 sts=2 sw=2 noexpandtab: */
